projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3461fd8
)
pdbfile: Avoid errors and warnings when changing gbsize_t to a 64-bit type.
author
oliskoli
<oliskoli>
Sun, 13 Apr 2008 20:59:45 +0000
(20:59 +0000)
committer
oliskoli
<oliskoli>
Sun, 13 Apr 2008 20:59:45 +0000
(20:59 +0000)
pdbfile.c
patch
|
blob
|
history
pdbfile.h
patch
|
blob
|
history
diff --git
a/pdbfile.c
b/pdbfile.c
index bade3d5671537e89dd04f9dad20f295ee8a63020..3d53c7bea9be2f52e3b8e11cc7a4040df1442c70 100644
(file)
--- a/
pdbfile.c
+++ b/
pdbfile.c
@@
-50,7
+50,7
@@
pdb_invalid_file(const pdbfile *pdb_in, const char *fmt, ...)
/* try to read to EOF (avoid determining file-size) */
static void *
-pdb_read_tail(gbfile *fin, gbint32 *size)
+pdb_read_tail(gbfile *fin, gb
u
int32 *size)
{
int count;
char buff[256];
@@
-176,7
+176,7
@@
pdb_load_data(pdbfile *fin)
offs += fin->appinfo_len;
}
else {
- gbint32 size;
+ gb
u
int32 size;
fin->appinfo = pdb_read_tail(fin->file, &size);
fin->appinfo_len = size;
offs += size;
diff --git
a/pdbfile.h
b/pdbfile.h
index 0ad8237cd53402b096b8fea4ca6d81fef3fd0204..4bef52211f286933a195b9d80e7de7b22dac4022 100644
(file)
--- a/
pdbfile.h
+++ b/
pdbfile.h
@@
-39,8
+39,8
@@
#define EPOCH_1904 2082844800L
typedef struct pdbrec_s {
- gbint32 offs;
- gbint32 size;
+ gb
u
int32 offs;
+ gb
u
int32 size;
gbuint32 id;
gbuint8 category;
gbuint8 flags;